local ____lualib = require("lualib_bundle")
local __TS__SourceMapTraceBack = ____lualib.__TS__SourceMapTraceBack
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["5"] = 2,["6"] = 2,["7"] = 3,["8"] = 3,["9"] = 4,["10"] = 4,["11"] = 7,["12"] = 8,["13"] = 8,["14"] = 8,["15"] = 9,["16"] = 10,["17"] = 11,["18"] = 12,["20"] = 8,["21"] = 8,["22"] = 7,["23"] = 17});
local ____exports = {}
local ____event_util = require("kernel.util.event_util")
local EventUtil = ____event_util.default
local ____keyboard = require("kernel.constant.keyboard")
local KEYBORD_KEY = ____keyboard.KEYBORD_KEY
local ____player = require("kernel.util.player")
local KPlayer = ____player.default
local function InitPlayerControl()
    EventUtil:register(
        "KEYBOARD_KEY_UP_EVENT",
        function(data)
            if data.__current_key == KEYBORD_KEY.F1 then
                local player = KPlayer:fromId(data.__role_id)
                local hero = player:getData("hero")
                player:selectUnit(hero)
            end
        end
    )
end
____exports.default = InitPlayerControl
return ____exports
